<?php
	header('Content-Type:text/html; charset=utf-8');

	$url = "./index.php";

	// 获取每页显示的页码和当前页码
	$page = isset($_GET['page']) ? $_GET['page'] : 1;

	$pagesize = 14;
	$minPage  = 1;

	// 定义数据库信息
	$info = array(

		'HOST' => 'localhost',
		'USER' => 'root',
		'PASS' => 'aqs1634077',
		'DATA' => 'essaysystem',
		'CHARSET' => 'utf8'

	);

	 if(isset($_GET['param'])){
	 	$param = isset($_GET['param']) ? $_GET['param'] : 'middle';

		switch ($param) {
			case 'middle':
				include_once('./pose/middleAction.php');
				break;

			case 'article_list':
				include_once('./pose/article_listAction.php');
				break;

			case 'userInterface':
				include_once('./pose/userInterfaceAction.php');
				break;

			case 'aboutUs':
				include_once('./pose/aboutUsAction.php');
				break;

			case 'article_details':
				include_once('./pose/article_detailsAction.php');
				break;


			// 后台模板加载
			case 'users_list':
				include_once('../admin/pose/users_listAction.php');
				break;

			case 'administrator_list':
				include_once('../admin/pose/administrator_listAction.php');
				break;

			case 'article_lists':
				include_once('./pose/article_listsAction.php');
				break;

			case 'article_classify':
				include_once('./pose/article_classifyAction.php');
				break;

			case 'menu_list':
				include_once('./pose/menu_listAction.php');
				break;

			case 'notice':
				include_once('./pose/noticeAction.php');
				break;

			case 'slide_list':
				include_once('./pose/slide_listAction.php');
				break;

			case 'siteInformation':
				include_once('./pose/siteInformationAction.php');
				break;

			case 'users_insert':
				break;

			case 'administrator_insert':
				break;

			case 'article_insert':
				break;

			case 'users_update':
				break;

			case 'administrator_update':
				break;

			case 'article_update':
				break;

			default: 
				header('location:./index.php?param=middle');
				break;
		}

	 }
?>